﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AgileFx.MVC.ValidationRules
{
    public class MinimumLengthRule : ValidationRule
    {
        public MinimumLengthRule(int length)
        {
            this.minLength = length;
        }

        private int minLength { get; set; }

        public override string GetAttributeString()
        {
            return string.Format("min({0})", minLength);
        }
    }
}
